package File;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LXW
 * Date: 2022-04-04
 * Time: 13:51
 */
public class Demo11 {
    public static void main(String[] args) throws IOException {
        try (OutputStream outputStream = new FileOutputStream("hello-world")){
            outputStream.write('h');
            outputStream.write('e');
            outputStream.write('l');
            outputStream.write('l');
            outputStream.write('o');
        }
    }
}
